﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using FollowMe.Model.Messages;

namespace FollowMe.Model
{
    public class MessageFactory
    {
        //Delegate function for message creation
        private Func<AMessage, Message> _newMessage;

        internal MessageFactory(Func<AMessage, Message> newMsg)
        {
            _newMessage = newMsg;
        }

        public Message CreateNew(AMessage aMessage){
            //if, then, else, etc.
            //TODO




            return _newMessage(aMessage);
        }
    }
}
